cmake_minimum_required(VERSION 3.1)
PROJECT(test_package)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
CONAN_BASIC_SETUP()

find_package(ApprovalTests REQUIRED CONFIG)

if(WITH_BOOSTTEST)
    ADD_EXECUTABLE(test_package_boosttest test_boosttest.cpp)
    target_link_libraries(test_package_boosttest ApprovalTests::ApprovalTests)
endif()
if(WITH_CATCH)
    ADD_EXECUTABLE(test_package_catch test_catch.cpp)
    target_link_libraries(test_package_catch ApprovalTests::ApprovalTests)
endif()
if(WITH_GTEST)
    ADD_EXECUTABLE(test_package_gtest test_gtest.cpp)
    target_link_libraries(test_package_gtest ApprovalTests::ApprovalTests)
endif()
if(WITH_DOCTEST)
    ADD_EXECUTABLE(test_package_doctest test_doctest.cpp)
    target_link_libraries(test_package_doctest ApprovalTests::ApprovalTests)
endif()
if(WITH_CPPUTEST)
    ADD_EXECUTABLE(test_package_cpputest test_cpputest.cpp)
    target_link_libraries(test_package_cpputest ApprovalTests::ApprovalTests)
endif()
